package com.dddframework.data.utils;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class ModelQueryMappingKit {
    private static final Map<Class, Class> BEAN_MAPPINGS = new ConcurrentHashMap<>();

    public static void map(Class source, Class target) {
        BEAN_MAPPINGS.put(source, target);
    }

    public static <T> Class<T> get(Class source) {
        return (Class<T>) BEAN_MAPPINGS.get(source);
    }

}
